package cz.cuni.amis.episodic.lisp.visitor;

import java.util.ArrayList;
import java.util.List;

import cz.cuni.amis.episodic.lisp.DefaultLispTranslator;
import cz.cuni.amis.episodic.lisp.visitor.TreeTraceVisitor;

/**
 *
 * @author ik
 */
public abstract class TreeActionsTraceVisitor extends TreeTraceVisitor {

    @Override
    public void traceVisited(List<List<String>> trace) {
        List<String> episTrace = new ArrayList<>();
        for (List<String> elem : trace) {
            episTrace.add(DefaultLispTranslator.translateOutcome(elem.get(0)));
        }
        actionTraceVisited(episTrace);
    }
    
    abstract void actionTraceVisited(List<String> actionsTrace);
}
